'use strict';

const Controller = require('egg').Controller;

class ClassController extends Controller {
  // 列表
  async list(){
    const { ctx,app } = this;

    let data = await ctx.model.Class.findAll()
    data = JSON.parse(JSON.stringify(data))

    ctx.apiSuccess(data)
}
}

module.exports = ClassController;
